package com.zhonghui.modlules.user.eshopVo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

@ApiModel(
        value = "YxUserAddressQueryVo对象",
        description = "用户地址表查询参数"
)
public class UserAddressQueryVo implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty("用户地址id")
    private Long id;
    @ApiModelProperty("用户id")
    private Long uid;
    @ApiModelProperty("收货人姓名")
    private String realName;
    @ApiModelProperty("收货人电话")
    private String phone;
    @ApiModelProperty("收货人所在省")
    private String province;
    @ApiModelProperty("收货人所在市")
    private String city;
    @ApiModelProperty("收货人所在区")
    private String district;
    @ApiModelProperty("收货人详细地址")
    private String detail;
    @ApiModelProperty("邮编")
    private Integer postCode;
    @ApiModelProperty("经度")
    private String longitude;
    @ApiModelProperty("纬度")
    private String latitude;
    @ApiModelProperty("是否默认")
    private Integer isDefault;

    public UserAddressQueryVo() {
    }

    public Long getId() {
        return this.id;
    }

    public Long getUid() {
        return this.uid;
    }

    public String getRealName() {
        return this.realName;
    }

    public String getPhone() {
        return this.phone;
    }

    public String getProvince() {
        return this.province;
    }

    public String getCity() {
        return this.city;
    }

    public String getDistrict() {
        return this.district;
    }

    public String getDetail() {
        return this.detail;
    }

    public Integer getPostCode() {
        return this.postCode;
    }

    public String getLongitude() {
        return this.longitude;
    }

    public String getLatitude() {
        return this.latitude;
    }

    public Integer getIsDefault() {
        return this.isDefault;
    }

    public void setId(final Long id) {
        this.id = id;
    }

    public void setUid(final Long uid) {
        this.uid = uid;
    }

    public void setRealName(final String realName) {
        this.realName = realName;
    }

    public void setPhone(final String phone) {
        this.phone = phone;
    }

    public void setProvince(final String province) {
        this.province = province;
    }

    public void setCity(final String city) {
        this.city = city;
    }

    public void setDistrict(final String district) {
        this.district = district;
    }

    public void setDetail(final String detail) {
        this.detail = detail;
    }

    public void setPostCode(final Integer postCode) {
        this.postCode = postCode;
    }

    public void setLongitude(final String longitude) {
        this.longitude = longitude;
    }

    public void setLatitude(final String latitude) {
        this.latitude = latitude;
    }

    public void setIsDefault(final Integer isDefault) {
        this.isDefault = isDefault;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof UserAddressQueryVo)) {
            return false;
        } else {
           UserAddressQueryVo other = (UserAddressQueryVo)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label155: {
                    Object this$id = this.getId();
                    Object other$id = other.getId();
                    if (this$id == null) {
                        if (other$id == null) {
                            break label155;
                        }
                    } else if (this$id.equals(other$id)) {
                        break label155;
                    }

                    return false;
                }

                Object this$uid = this.getUid();
                Object other$uid = other.getUid();
                if (this$uid == null) {
                    if (other$uid != null) {
                        return false;
                    }
                } else if (!this$uid.equals(other$uid)) {
                    return false;
                }

                Object this$postCode = this.getPostCode();
                Object other$postCode = other.getPostCode();
                if (this$postCode == null) {
                    if (other$postCode != null) {
                        return false;
                    }
                } else if (!this$postCode.equals(other$postCode)) {
                    return false;
                }

                label134: {
                    Object this$isDefault = this.getIsDefault();
                    Object other$isDefault = other.getIsDefault();
                    if (this$isDefault == null) {
                        if (other$isDefault == null) {
                            break label134;
                        }
                    } else if (this$isDefault.equals(other$isDefault)) {
                        break label134;
                    }

                    return false;
                }

                label127: {
                    Object this$realName = this.getRealName();
                    Object other$realName = other.getRealName();
                    if (this$realName == null) {
                        if (other$realName == null) {
                            break label127;
                        }
                    } else if (this$realName.equals(other$realName)) {
                        break label127;
                    }

                    return false;
                }

                label120: {
                    Object this$phone = this.getPhone();
                    Object other$phone = other.getPhone();
                    if (this$phone == null) {
                        if (other$phone == null) {
                            break label120;
                        }
                    } else if (this$phone.equals(other$phone)) {
                        break label120;
                    }

                    return false;
                }

                Object this$province = this.getProvince();
                Object other$province = other.getProvince();
                if (this$province == null) {
                    if (other$province != null) {
                        return false;
                    }
                } else if (!this$province.equals(other$province)) {
                    return false;
                }

                label106: {
                    Object this$city = this.getCity();
                    Object other$city = other.getCity();
                    if (this$city == null) {
                        if (other$city == null) {
                            break label106;
                        }
                    } else if (this$city.equals(other$city)) {
                        break label106;
                    }

                    return false;
                }

                Object this$district = this.getDistrict();
                Object other$district = other.getDistrict();
                if (this$district == null) {
                    if (other$district != null) {
                        return false;
                    }
                } else if (!this$district.equals(other$district)) {
                    return false;
                }

                label92: {
                    Object this$detail = this.getDetail();
                    Object other$detail = other.getDetail();
                    if (this$detail == null) {
                        if (other$detail == null) {
                            break label92;
                        }
                    } else if (this$detail.equals(other$detail)) {
                        break label92;
                    }

                    return false;
                }

                Object this$longitude = this.getLongitude();
                Object other$longitude = other.getLongitude();
                if (this$longitude == null) {
                    if (other$longitude != null) {
                        return false;
                    }
                } else if (!this$longitude.equals(other$longitude)) {
                    return false;
                }

                Object this$latitude = this.getLatitude();
                Object other$latitude = other.getLatitude();
                if (this$latitude == null) {
                    if (other$latitude != null) {
                        return false;
                    }
                } else if (!this$latitude.equals(other$latitude)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof UserAddressQueryVo;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $id = this.getId();
        result = result * 59 + ($id == null ? 43 : $id.hashCode());
        Object $uid = this.getUid();
        result = result * 59 + ($uid == null ? 43 : $uid.hashCode());
        Object $postCode = this.getPostCode();
        result = result * 59 + ($postCode == null ? 43 : $postCode.hashCode());
        Object $isDefault = this.getIsDefault();
        result = result * 59 + ($isDefault == null ? 43 : $isDefault.hashCode());
        Object $realName = this.getRealName();
        result = result * 59 + ($realName == null ? 43 : $realName.hashCode());
        Object $phone = this.getPhone();
        result = result * 59 + ($phone == null ? 43 : $phone.hashCode());
        Object $province = this.getProvince();
        result = result * 59 + ($province == null ? 43 : $province.hashCode());
        Object $city = this.getCity();
        result = result * 59 + ($city == null ? 43 : $city.hashCode());
        Object $district = this.getDistrict();
        result = result * 59 + ($district == null ? 43 : $district.hashCode());
        Object $detail = this.getDetail();
        result = result * 59 + ($detail == null ? 43 : $detail.hashCode());
        Object $longitude = this.getLongitude();
        result = result * 59 + ($longitude == null ? 43 : $longitude.hashCode());
        Object $latitude = this.getLatitude();
        result = result * 59 + ($latitude == null ? 43 : $latitude.hashCode());
        return result;
    }

    public String toString() {
        return "UserAddressQueryVo(id=" + this.getId() + ", uid=" + this.getUid() + ", realName=" + this.getRealName() + ", phone=" + this.getPhone() + ", province=" + this.getProvince() + ", city=" + this.getCity() + ", district=" + this.getDistrict() + ", detail=" + this.getDetail() + ", postCode=" + this.getPostCode() + ", longitude=" + this.getLongitude() + ", latitude=" + this.getLatitude() + ", isDefault=" + this.getIsDefault() + ")";
    }
}

